package src;
import java.util.HashMap;
import java.util.Map;


public class Dictionary {
	
	HashMap dictionary;
	
	public Dictionary() {
		dictionary = new HashMap();
	}
	
	public void insert(int key, int value) {
		dictionary.put(key, value);
	}
	
	public int size() {
		return dictionary.size();
	}
	
	public void delete(int key) {
		if(dictionary.containsKey(key)) {
			dictionary.remove(key);
		}
	}
	
	public HashMap list() {
		return dictionary;
	}

}
